// 引入request
import request from '../util/request.js';
import config from '../util/config.js';
const HomeRequest = {
    baseURL: config.sysUrl + "/sys",
    async getHomeData()
    {
        let data = await request.getSync(this.baseURL + "/menu/list",{});
        data = data.data;
        return data;
    },
    getMenuList(callBack)
    {
        request.get(this.baseURL + "/menu/list",{},callBack);
    },
}

export default HomeRequest;